@ECHO OFF

FOR %%x in (C D E F G) DO CALL :proxy %%x

ECHO "Program bash not available!"
CALL :pause-exit

:proxy
    SET BASH=%1:\winport\_files\Cygwin\bin\bash.exe
    ECHO "Trying %BASH%"
    IF EXIST %BASH% (
        %BASH% -l %~dp0_files\proxy.sh start
        ECHO "SSH proxy started"
        CALL :pause-exit
    )
    GOTO :EOF

:pause-exit
PAUSE
EXIT
